package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体
 * </p>
 *
 * @author 黄露
 * @since 2020-09-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// "DeviceFibreRealtime对象", description = "")
public class DeviceFibreRealtime extends Model<DeviceFibreRealtime> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "realtime_id", type = IdType.AUTO)
    private Integer realtimeId;

    // "设备ip")
    private String ipAddr;

    // "端口")
    private Integer channel;

    // "光纤长度")
    private String fibreLength;

    // "光纤衰耗")
    private String fibreLoss;

    // "时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @Override
    public Serializable pkVal() {
        return this.realtimeId;
    }

}
